package cn.yudao.org.service;

import cn.yudao.basic.utils.PageList;
import cn.yudao.org.domain.Department;
import cn.yudao.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {

    // 查询所有根据分页查询高级查询
    List<Department> findAllDepartment();

    // 根据id查询数据
    Department findByIdDepartment(Long id);

    // 新增
    void addDepartment(Department department);

    // 修改
    void uptDepartment(Department department);

    // 根据id删除
    void removeDepartment(Long id);

    // 根据查询高级查询
    PageList queryDepartment(DepartmentQuery departmentQuery);

}
